package com.awonsome.mall.ums.boot.mapper;

import com.awonsome.mall.ums.pojo.entity.UmsAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangdejun
 * @date 2022/1/27 11:32
 */
@Mapper
public interface UmsAddressMapper extends BaseMapper<UmsAddress> {

    /**
     * 根据用户 ID 查询用户地址列表
     *
     * @param userId
     * @return
     */
    List<UmsAddress> listByUserId(@Param(value = "userId") Long userId);

}
